1: | app(app(app(f,0),1),x) | → app(app(app(f,app(s,x)),x),x) | |
2: | app(app(app(f,x),y),app(s,z)) | → app(s,app(app(app(f,0),1),z)) | |
3: | APP(app(app(f,0),1),x) | → APP(app(app(f,app(s,x)),x),x) | |
4: | APP(app(app(f,0),1),x) | → APP(app(f,app(s,x)),x) | |
5: | APP(app(app(f,0),1),x) | → APP(f,app(s,x)) | |
6: | APP(app(app(f,0),1),x) | → APP(s,x) | |
7: | APP(app(app(f,x),y),app(s,z)) | → APP(s,app(app(app(f,0),1),z)) | |
8: | APP(app(app(f,x),y),app(s,z)) | → APP(app(app(f,0),1),z) | |
9: | APP(app(app(f,x),y),app(s,z)) | → APP(app(f,0),1) | |
10: | APP(app(app(f,x),y),app(s,z)) | → APP(f,0) | |